Cognitoware.Robotics.dll
Class Binomial<T>
T: The Vector type representing of E[X].
Implemented Interfaces
Summary
A binomial distribution.
Constructor Summary
Creates a binomial distribution where one event has been observed p times and the other event observed q times.
Method Summary
AliasAs()
Inherited from Cognitoware.Mathematics.Probability.RandomDistribution
Equals(Object)
Inherited from System.Object
Finalize()
Inherited from System.Object
GetEntropy(IEnumerable<T>)
Inherited from Cognitoware.Mathematics.Probability.RandomDistribution
GetHashCode()
Inherited from System.Object
GetType()
Inherited from System.Object
MemberwiseClone()
Inherited from System.Object
Mutiplies two binomials to mean in a new binomial.
Gets the probability density that E[X=q] = t.
Mutiplies this binomial by a binomial to mean in a new binomial.
Not implemented in Binomial.
ToString()
Inherited from System.Object
Details
A binomial distribution models the expectation of a two x random variable.
Let a random variable X have two states [0,1].
E[X] is average of all events.
If both events are equally likely then E[X=0] = E[X=1] = 0.5.
The binomial distribution models the probability of E[X].
P(E[X]) = K * E[X]p * (1-E[X])q
Constructor Details
public Binomial(Int32 p, Int32 q)
Creates a binomial distribution where one event has been observed p times and the other event observed q times.
Parameters:
p
- The number of times the first event has been observed.
q
- The number of times the second event has been observed.
Method Details
public static Binomial<T> Multiply(Binomial<T> arg0, Binomial<T> arg1)
Mutiplies two binomials to mean in a new binomial.
The operation sums the values of p and q in both distributions.
Parameters:
arg0
- The first operand.
arg1
- The second operand.
Returns:
A new binomial combining information from the two operands.
public override Double ProbabilityOf(T t)
Gets the probability density that E[X=q] = t.
Returns:
The probability that the specified expected value is the true expected values.
public final virtual Binomial<T> Product(Binomial<T> that)
Mutiplies a binomial by a binomial to mean in a new binomial.
The operation sums the values of p and q in both distributions.
Product is used to collapse distribution representations during Bayesian inferencing.
Parameters:
that
- The second operand in the multiplication.
Returns:
A new binomial combining the information from the two binomial arguments.
public override T Sample(Random select)
Implements the abstract method in RandomDistribution.
Throws NotImplementedException.